
package com.borqs.music.http;

import static org.apache.http.HttpStatus.SC_BAD_GATEWAY;
import static org.apache.http.HttpStatus.SC_BAD_REQUEST;
import static org.apache.http.HttpStatus.SC_FORBIDDEN;
import static org.apache.http.HttpStatus.SC_INTERNAL_SERVER_ERROR;
import static org.apache.http.HttpStatus.SC_METHOD_FAILURE;
import static org.apache.http.HttpStatus.SC_MULTIPLE_CHOICES;
import static org.apache.http.HttpStatus.SC_NOT_ACCEPTABLE;
import static org.apache.http.HttpStatus.SC_NOT_FOUND;
import static org.apache.http.HttpStatus.SC_NOT_MODIFIED;
import static org.apache.http.HttpStatus.SC_OK;
import static org.apache.http.HttpStatus.SC_SERVICE_UNAVAILABLE;
import static org.apache.http.HttpStatus.SC_UNAUTHORIZED;

public interface HttpResponseCode {
    // OK: Success!
    int OK = SC_OK;
    // Multiple Choices
    int MULTIPLE_CHOICES = SC_MULTIPLE_CHOICES;
    // Not Modified: There was no new data to return.
    int NOT_MODIFIED = SC_NOT_MODIFIED;
    // Bad Request: The request was invalid. An accompanying error message will
    // explain why. This is the status code will be returned during rate
    // limiting.
    int BAD_REQUEST = SC_BAD_REQUEST;
    // Not Authorized: Authentication credentials were missing or incorrect.
    int UNAUTHORIZED = SC_UNAUTHORIZED;
    // Forbidden: The request is understood, but it has been refused. An
    // accompanying error message will explain why.
    int FORBIDDEN = SC_FORBIDDEN;
    // Not Found: The URI requested is invalid or the resource requested, such
    // as a user, does not exists.
    int NOT_FOUND = SC_NOT_FOUND;
    // Not Acceptable: Returned by the Search API when an invalid format is
    // specified in the request.
    int NOT_ACCEPTABLE = SC_NOT_ACCEPTABLE;
    // Enhance Your Calm: Returned by the Search and Trends API when you are
    // being rate limited. Not registered in RFC.
    int ENHANCE_YOUR_CLAIM = SC_METHOD_FAILURE;
    // Internal Server Error: Something is broken. Please post to the group so
    // the server team can investigate.
    int INTERNAL_SERVER_ERROR = SC_INTERNAL_SERVER_ERROR;
    // Bad Gateway: server is down or being upgraded.
    int BAD_GATEWAY = SC_BAD_GATEWAY;
    // Service Unavailable: The servers are up, but overloaded with
    // requests. Try again later. The search and trend methods use this to
    // indicate when you are being rate limited.
    int SERVICE_UNAVAILABLE = SC_SERVICE_UNAVAILABLE;
}
